<style type="text/css">

#wview{
background-color:#F4F4F4;
}
#table1{
background-color:#FFF8E5;
padding:2px 2px 2px 2px

}
#table1 td{
width:110;
height:150;
vertical-align:top;
border:1.5px solid #FCB183;
text-align:center;
color:#FF6407;
font-size: 12px;

}


</style>
<div id='wview'>
<table cellpadding="0" cellspacing="0" width="100%"
	style="margin-top:5px">
	<tr>
		<td id='content-header-left' style="text-align:center" height='29px'>Wall Papers</td>
		<td id='content-header-center' style="text-align:center">Latest Wall Papers</td>
		<td id='content-header-right'></td>

	</tr>
	<tr>
		<td id="gossip_left_right" bgcolor="#FF9853" valign="top" align="left">
		<table>
		       <?php
		foreach ($wcategeories->result() as $item ) {
			?>
		       <tr>
		       <td><img src="<?=base_url();?>assets/imgs/button-img.gif" /></td>
			   		
			 <td class="sidelinks"><a
				href="<?=base_url ();?>wallpapers/details/<?=$item->id?>"
				><?=ucfirst(trim_name($item->catname,15))?></a></td>
				</tr>
			
			<?}?>	
			
		
		</table>
		
		</td>
		
		<td align='center'>
     <table id='table1' cellpadding='3px' cellspacing='2px' align='left'>
	<tr>
			
	<?php
       if(empty($recentcategeories))
		{   echo"<td style='text-align:center' width='600px'>";
			echo" <h1>No Data Found</h1></td>";
		}
	$count = 0;
	foreach($recentcategeories as $key => $item) {
		?>
	 
		
		
				<td height='15px' colspan='4'
					style="background-color:#FF6407;text-align:left;padding-top:5px;color:#FFF8E5;font-weight:bold"><?=ucfirst(trim_name($item['catname'],40));?>
				</td>
			</tr>
			<tr>
			
			<?
		   
			foreach($subcategeories as $subitem){
				foreach($subitem as $subitem)
				{
				if($subitem['parentid']==$item['id']):
			     $j = $subitem['id'];
			
	                ?>
				<td  width='140px'><a href="<?=base_url();?>wallpapers/display/<?=$j?>" ><img
					src="<?=base_url ();?>assets/wallpapers/image<?=$image[$j]?>_size1_thumb.jpg"
					style="vertical-align:top" /></a><div style="align:bottom;padding-top:5px;"><a href="<?=base_url();?>wallpapers/display/<?=$j?>" style="color:#FF6407"><?=ucfirst(trim_name($subitem['catname'],15));?></a><br/>
					
             <? 
             	endif;  
		} 
}
		?>
			</tr>
			<tr>
				<td height='20px' colspan='4'
					style="background-color: #CCC7CB; text-align: right;"><a href="<?=base_url();?>wallpapers/details/<?=$item['id']?>"
					style="color: red">more..</a></td>
			</tr>

           
		
		
		
		<?
		$count++;
     	}
	?>
	
	</table>
		</td>
		<td></td>
	</tr>

</table>
</br>
</br>
</div>